/*
 * @Description: 
 * @Author: 张凌瑞
 * @Date: 2021-03-08 10:53:28
 * @LastEditTime: 2021-03-09 16:23:22
 * @LastEditors: 张凌瑞
 */

import { request } from "umi";
import { addExamType } from "@/interface/addexam";
import { question_ids } from "@/interface/exam";



//添加考试
export const addexam = (data: addExamType) => {
    return request("/exam/exam", { method: 'post', data });
}

//更新试卷
export const examUpdate = (data: question_ids) => {
    console.log(data.question_ids)
    return request("/exam/exam/w5tcy-g2dts", { method: 'PUT', data } );
}
// params:{question_ids:data.question_ids} }